// 把小仓库的数据 映射成全局的getters =》 快速访问
const getters = {
  sidebar: state => state.app.sidebar, // 控制侧边栏收缩展开
  device: state => state.app.device, // 检查手机还是pc
  language: state => state.app.language,
  token: state => state.user.token,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  routes: state => state.permission.routes,
  nameNo: start => start.user.name
  // token(state) {
  //   return state.user.token
  // },
}
export default getters
